param($Port)

 $RootPath = split-path -parent $MyInvocation.MyCommand.Definition

#$currentfilepath = $MyInvocation.PSScriptRoot

Write-Host "currentRootPath => $($RootPath)"

push-Location -Path "$($RootPath)/Web.MVC"
dotnet run --  ConsulSetting:ServicePort=$Port --Urls=http://*:$Port

Set-Location -Path $RootPath
#运行
#../startWeb.ps1 8800